package com.example.spingcloudconsumer.client;

import com.example.spingcloudconsumer.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Primary;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
@Primary
@FeignClient(value = "service-provider",
        fallback=UserClientFallBack.class)
public interface UserClient {
    @GetMapping("user/{id}")
    String queryById(@PathVariable("id") Long id);
}
